// pages/my_score/my_score.js
var app = getApp();
Page({
  data: {
    money_log:[],
    now_money:''
  },
  onLoad: function (options) {
    let that = this
    wx.request({
      url: app.url + '/weiapp/api/getMoneyLog',
      data:{
        uid:wx.getStorageSync('uid')
      },
      success:function(res)
      {
        console.log(res)
        that.setData({
          money_log: res.data.data
        })
        that.setData({
          now_money:res.data.now_money
        })
      }
    })
  },
  goDrawMoney:function()
  {
    wx.navigateTo({
      url: '../draw_money/draw_money',
    })
  }
})